002 how i do it

好的。
All right.

欢迎回来。
Welcome back.

Project 18 让我们把这件事放在一起。
Project 18 let's get this thing together.

我喜欢数据记录。
And I like the data logging.

我不知道为什么,但对我来说这总是有趣的部分。
I don't know why but to me that's always the fun part.

因此,让我们进入任务,我们将右键单击趋势命中和。
So let's come into tasks and we're going to right click on trend hit and.

让我们继续设置这个东西。
Let's go ahead and set this thing up.

好吧,我们需要做的第一件事是定期进行数据记录。
Well the first thing we're going to need we're going to be doing our periodic data logging.

现在我们已经在触发时进行了保存,并且每秒都会保存一次。
Right now we've got a save on trigger and that's going to be each second.

好吧,我们确实想节省触发器,但第二位并不能真正帮助我们,我们需要的是 10 分钟位,但 10 分钟出价不存在。
Well we do want to save on a trigger but the second bit isn't really going to help us what we need is a 10 minute bit but a 10 minute bid doesn't exist.

所以我们必须制作一个 10 分钟的片段。
So we're going to have to create a 10 minute bit.

那么让我们回到全球。
So let's come back over here into global.

我们将在数据表视图中设置几个新标签。
And we're going to set up a couple of new tags in our data sheet view.

我们要设置的第一个是反洗结束指示器。
The first one we're going to set up is our indicator backwash ended.

我们已经知道,每当我们实际进行按需数据记录时,我们都将需要这一点,但我们还需要一个 10 分钟出价的比特。
We already know that we're going to need that bit whenever we're actually doing our on demand data logging but then we're also going to need one that's going to be a 10 minute bid.

所以我将这称为 10 men,并将其保存为布尔值。
So I'm just going to call this 10 men and I'll save that as a boolean.

所以我们必须每 10 分钟就为这 10 分钟注入能量。
So we've got to energize this 10 minute bit every 10 minutes.

如果不使用 DLC,我们该如何做到这一点呢?
How are we going to do that without using the DLC.

让我们回到任务,我将右键单击计划并插入。
Let's come back into tasks and I'm going to right click on schedular and insert.

因此,我们将有一个由时钟触发的事件,时钟的时间将是每零时 10 分钟零秒和零毫秒,然后我们不会使用日期,因为我们没有在日历上触发。
So we're going to have an event that's going to be triggered by the clock and the time for the clock is going to be every zero hours 10 minutes zero seconds and zero milliseconds and then we're not going to use a date because we're not triggering on calendar.

然后是一个标签。
And then for a tag.

这是我们将触发 10 个人标签的地方,所以让我们继续将其拉入。
This is where we're going to trigger our 10 men tags so let's go ahead and pull that in.

我们想要写入该标签的表达式只是一个简单的表达式。
And the expression we want to write to that tag is just going to be a simple one.

因此,每隔 10 分钟,我们应该向我们的 10 人标签写入一个 1,让我们继续保存它,这将是工作表 1,然后我们的另一个也将是工作表 1,因为我们也在为我们的数据处理一个。
So every 10 minutes we should be writing a 1 to our 10 men tag and let's go ahead and save that and that'll be sheet 1 and then our other one will also be Sheet 1 because we're also working up one for our data.

然后让我们回到我们的趋势。
And then let's come back into our trend.

我们可以改变这一秒,这将是我们的 10 人标签。
We can change this second and that's going to be our 10 men tag.

现在,我们将继续记录每次收到 10 分钟信号时的情况,我将对此进行描述,这将是周期性的,将会起作用。
Now we will go ahead and be logging every time we get that 10 min signal and I'll give this the description and this is going to be periodic that will work.

我们要在这里保存三个标签。
And there are three tags we want to save in here.

因此,让我们继续双击此按钮,我们将要保存反冲洗运行。
So let's go ahead and double click on this and we're going to want to save our backwash running.

实际上,首先让我们继续保存系统运行的指标。
Actually first of all let's go ahead and save our indicator for system running.

所以系统运行后我们想知道反洗是否正在运行。
So system running then we want whether or not backwash is running.

最后一件事是我们的压差。
And the last thing will be our differential pressure.

这就是真实的压差。
So that's a real and differential pressure.

这是每次发生这种情况时我们想要保存的三件事。
Those are the three things that we're going to want to save every single time that this thing happens.

现在我们已经有了真正想要保存到趋势中的标签,我们需要设置数据库,以便在项目中进入我们的选项,让我们设置默认数据库,然后我们将回到这里,这将是我们唯一的续集。
So now that we've got the tags that we actually want to save into a trend we need to set up our database so to do that come up to a project go into our options and let's take our default database set up and we're going to go back in here and that's going to be our only for sequel.

现在我们已经知道了,我们可以继续说使用 Windows inti 集成安全性,然后让我们通过这个小下拉列表选择数据库,并假设一切都已连接,我们可以选择 RPO,看到三个点击“确定”,然后点击“确定”。
And now that we've got that we can go ahead and say use Windows inti integrated security and then let's select the database by this little drop down and assuming everything is connecting and it is we can pick RPO see three hit OK and hit OK.

我认为我们在这方面做得很好。
And I think we're good on that.

所以我们可以直接跳出那里。
So we can jump right out of there.

现在回到这里,我们已经有了这样一个专有的历史格式。
Now coming back in here we've got our history format such a proprietary.

我们要将其放入数据库中,然后继续配置该数据库。
We're going to want to put that into our database and then let's go ahead and configure that database.

所以我们不会使用默认名称。
So we're not going to use the default name.

我们想将其存储在一个名为周期性的表中,所以我将其写在那里。
This one we want to store in a table called periodic so I'll write that in there.

让我们摆脱这种趋势 0 0 1 因为我们不希望它出现在名称中。
And let's get rid of that trend 0 0 1 because we don't want that appearing in the name.

我们已将其设置为自动创建,然后我们甚至可以在此处放置一些字段名称。
We've got it set to automatically create and then we can even put some field names on here.

因此,我将继续将这一运行放在那一运行上。
So I'll go ahead and just put this run on that one.

我将在其上运行 BW,然后我将其称为 D-I F-F PR 是的。
I'll put BW run on that and then I will call this D-I F-F PR Yes.

所以应该这样做。
So that should do it.

我相信我们已经确定了我们的趋势之一。
And I believe we've got one of our trends set up.

所以让我们继续保存它。
So let's go ahead and save that.

我想保存它。
I want to save it.

是的。
Yes.

我也不认为我需要再开放我们的日程安排,所以我会继续关闭它,暂时关闭一些我真正不需要的东西。
And I don't believe I need our schedule there open anymore either so I'll go ahead and close that for the time being closed down some things I really don't need.

回到我们的趋势,我们记得我们想要设置其中两个。
Back in our trends we remember we've got two of these we wanted to set up.

一种是定期的,但我们也想要一种按需的。
One was the periodic But then we also want one that's on demand.

因此,我们将其称为“按需”。
So let's go ahead and call this On-Demand.

然后我们要在这里放什么标签。
And then what tag's do we want to put in here.

好吧,我们首先要输入的内容是我们要输入的反洗计数。
Well the first thing that we want to put as we want to put in our backwash count.

所以我们要寻找一个整数并进行循环计数。
So we're going to look for an integer and take cycle count.

然后我们还想知道是否启用了反冲洗。
Then we also want to know if backwash is enabled or not.

因此,我们将禁用反冲洗,然后输入所有仪表值。
So we're going to have this backwash disabled and then we want to put all of our our meter values.

那么让我们继续取整数。
So let's go ahead and take integer.

这将是我们的米乘以一千小时乘以我们的分钟,然后是我们的秒。
And that's going to be our meter times a thousand hours times won our minutes and then our seconds.

然后让我们设置如何实际触发它。
And then let's set up how we're going to actually trigger this.

因此,我们将把它保存在触发器上,而该触发器实际上就是我们为了触发它而创建的标签。
So we're going to save this on a trigger and that trigger is actually going to be that tag that we created just to trigger this.

这样我们的指标反洗就结束了。
So that's going to be our indicator backwash ended.

让我们点击确定。
Let's hit OK on that.

然后是我们的格式。
And then our format.

我们想要的是数据库以及我们的数据库配置。
We want to be database and our database configuration.

我们不会使用默认名称。
We are not going to use the default name.

我们将把它存储到一个名为反洗的表中。
We're going to store this to a table called backwash.

让我们再次引领这一趋势 0 0 2。
And once again let's to lead out that trend 0 0 2.

我们将自动创建这个表,这样我们就可以点击确定。
We're going to automatically create this table so we can hit okay on that.

然后让我们给这些字段一些名称,这样我们就可以称之为计数。
And then let's give these fields some names so we'll call this count.

我们将其称为“残疾人”,然后我们将有一个“我将其称为 K H.R.”。
We'll call this disabled and then we'll have a I'll just call this K H.R.

S。

S.

然后我们会有 H.R.
Then we'll have H.R.

s 我们会得到我的病,然后我们会得到 SPCS,这样就可以了。
s We'll have my illness and then we'll have SPCS and that should do it.

让我们继续保存所有内容,并将其保存为第二张表。
Let's go ahead and save all and we'll save this as sheet number two.

我认为我们现在已经设置了数据记录。
And I think we now have our data logging set up.

所以我会让这个东西运行一会儿,这样我们就不必等待 10 分钟来看看它是否会起作用。
So I'm going to get this thing running for a little bit so that we don't have to wait 10 minutes to see if it's going to work.

还有我们的下一个讲座。
And our next lecture.

因此,让我们继续将其置于运行模式。
So let's go ahead and just put this thing into run mode.

现在我们开始吧。
Now there we go.

我们的系统正在运行,我们处于正向流动中,所以看起来我们会回来,我会花几分钟时间去拿可乐或其他东西回来,然后一旦我们应该有一些数据,我就会开始测试讲座在我们的数据库中,我们将查看我们的数据是否有效,如果无效,我们将修复它。
Our system is running we're in forward flow or so it would seem we will come back and I will take a few minutes and go grab a coke or something come back and then I will start up the test lecture once we should have some data in our database and we will see if our data is working and if it's not we'll fix it.

我希望是这样。
I'm hoping it is though.

那么再见吧。
So how See you then.

干杯
Cheers